package com.example.xiaomi.service;

import com.example.xiaomi.entity.contentsinfo;
import com.example.xiaomi.mapper.ContentsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ContentsServiceImpl implements ContentsService{
    @Autowired
    private ContentsMapper mapper;
    @Override
    public List<contentsinfo> findAllContents(){
        List<contentsinfo> allContents = mapper.findAllContents();
        return allContents;
    }
}
